lib/sepolicy: Drop duplicate assignment
authorPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 13:11:31 +0000 (14:11 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 8 Aug 2017 14:11:07 +0000 (14:11 +0000)
Spotted by Coverity as issue #1452619.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1059
Approved by: cgwalters

src/libostree/ostree-sepolicy.c

index 7387ea0f78e05b12df3ac517df575e5545c9b6e7..6012d9da007fde79a61f10dc4d3ef76c39fe8d69 100644 (file)
@@ -328,7 +328,7 @@ initable_init (GInitable     *initable,
   g_autoptr(GFile) policy_root = NULL;
   if (g_file_query_exists (policy_config_path, NULL))
     {
-      g_autoptr(GFileInputStream) filein = filein = g_file_read (policy_config_path, cancellable, error);
+      g_autoptr(GFileInputStream) filein = g_file_read (policy_config_path, cancellable, error);
 
       if (!filein)
         return FALSE;